class CreateBooks < ActiveRecord::Migration
  def self.up
    create_table :books do |t|
      t.integer :user_id 
      t.string :title
      t.string :isbn
      t.timestamps
    end
    
     #add index
    add_index :books, :user_id
    #will need to add the index to condition later.

  end

  def self.down
    drop_table :books
  end
end 
